package com.nett;

import java.io.OutputStream;
import java.net.InetAddress;
import java.net.Socket;

public class TCPClient {
	public static void main(String[] args) throws Exception {
		//创建Socket对象
		Socket s = new Socket(InetAddress.getByName("10.12.4.67"),10086);
		//获取输出流对象
		OutputStream os = s.getOutputStream();
		//发送数据
		String str = "This TCP,im comming";
		os.write(str.getBytes());
		//释放
		s.close();
	}
}
